package com.hanggold.jfinal.springframework.demo;

import com.hanggold.jfinal.springframework.bean.Person;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2019-09-29 14:08
 * @since 1.0.0
 **/
public class OneDemo {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();

        context.scan("com.hanggold.springframework");

        context.refresh();

        Person person = context.getBean(Person.class);

        person.say("xxxx");


    }


}
